﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Abp.Auditing;
using Abp.Authorization.Users;
using Abp.Domain.Entities;

namespace pandx.Mulan.Authorization.Users.Dto
{
    public class UserEditDto : IPassivable
    {
        public bool IsActive { get; set; }
        public long? Id { get; set; }
        [Required]
        [StringLength(AbpUserBase.MaxNameLength)]
        public string Name { get; set; }
        

        [Required]
        [StringLength(AbpUserBase.MaxUserNameLength)]
        public string UserName { get; set; }
        [Required]
        [EmailAddress]
        [StringLength(AbpUserBase.MaxEmailAddressLength)]
        public string EmailAddress { get; set; }
        [StringLength(UserConsts.MaxPhoneNumberLength)]
        public string PhoneNumber { get; set; }
        [StringLength(AbpUserBase.MaxPasswordLength)]
        [DisableAuditing]
        public string Password { get; set; }

        public bool ShouldChangePasswordOnNextLogin { get; set; }
        public virtual bool IsTwoFactorEnabled { get; set; }
        public virtual bool IsLockoutEnabled { get; set; }

        public Gender Gender { get; set; }


    }
}

